-- require 'util'
require 'fight'
local thread = require('thread')
init(0)

autoFight()
thread.waitAllThreadExit()
-- b = isColor(1405, 745,0xd8b741)
-- nLog(b)
--             touchDown(2,375,686)
-- while true do
--     mSleep(1000)
-- end
-- function fengrao()
--     while true do
--         clickAndSleep({
--             {389,344},
--             {814,232},
--             {1238,339}
--         },10)
--         fight()
--     end
-- end
-- function xiaodui()
--     while true do
--         clickAndSleep({
--             {1469,775}
--         },10)
--         fight()
--     end
-- end
-- xiaodui()